﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace _344A
{
    public partial class Bookings : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void book(object sender, EventArgs e)
        {
            GridViewRow clickedRow = ((LinkButton) sender).NamingContainer as GridViewRow;
            Response.Redirect("./CreateBooking.aspx?id=" + clickedRow.Cells[1].Text);
        }

        protected void view(object sender, EventArgs e)
        {
            GridViewRow clickedRow = ((LinkButton)sender).NamingContainer as GridViewRow;
            Response.Redirect("./ViewBookings.aspx?id=" + clickedRow.Cells[1].Text);
        }
    }
}
